#include <stdio.h>
#include <string.h>

#define NORTH 0
#define WEST  1
#define SOUTH 2
#define EAST  3

#define NORTH_CAN 1
#define SOUTH_CAN 2
#define WEST_CAN  4
#define EAST_CAN  8

int main(int argc, char *argv[])
{
	unsigned int n, dc, len, i;
	char en2ex[10000], ex2en[10000];
	unsigned int a[1000][1000];

	scanf("%d", &n);

	/**
	 * Debug settings.
	 */
	n = 2;

	while (n--) {
		scanf("%s %s", en2ex, ex2en);

		dc = SOUTH;
		len = strlen(en2ex);
		for (i=1; i<len; i++) {
			switch (en2ex[i]) {
				case 'W':
					break;
				case 'L':
					dc = (dc + 1) % 4;
					break;
				case 'R':
					dc = (dc - 1) % 4;
					break;
			}
		}
	}

	return 0;
}
